<meta title="转账审核" args="order" width="600px" />
<form class="p" id="form" s="form,nda,datac" s-data="order" method="put" action="/api/sellerPromotionItemDepositOrder/verify/{order.id}">
    <table class="table table-bordered table-stripped">
        <tr>
            <th>支付宝交易号：</th>
            <td name="alipayTransferTradeNo"></td>
        </tr>
        <tr>
            <th>返利金额：</th>
            <td name="rebateFee"></td>
        </tr>
        <tr>
            <th>支付金额：</th>
            <td name="paidFee"></td>
        </tr>
        <tr>
            <th>审核备注：</th>
            <td>
                <input autocomplete="off" type="hidden" id="success" name="success" />
                <textarea id="verifyRemark" class="form-control" rows="5" name="verifyRemark"></textarea>
            </td>
        </tr>
    </table>
</form>

<script>
    S.meta.btns = [
        {
            name: "通过",
            style: "btn btn-success",
            click: function() {
                $success.node.val("true")
                return $form.submit().done(function(rs) {
                    S.close(rs);
                })
            }
        },
        {
            name: "拒绝",
            style: "btn btn-danger btn-outline",
            click: function() {
                if($verifyRemark.node.val() == "") {
                    S.toast("请输入审核备注", 'warning');
                    return;
                }
                $success.node.val("false")
                return $form.submit().done(function(rs) {
                    S.close(rs);
                })
            }
        },
        {
            name: "取消",
            style: "btn btn-default",
            click: function() {
                S.close();
            }
        }
    ]
</script>